package com.lzy.pattern.builder;

/**
 * @ClassName: Director
 * @Description: 指挥者
 * @Author: LiuZy
 * @Date: 2022/4/17 23:08
 * @Version: 1.0
 */
public class Director {

    private Builder builder;

    public Director(Builder builder){
        this.builder = builder;
    }

    public Bike build(){
        builder.buildFrame();
        builder.buildSeat();
        return builder.createBike();
    }
}